package org.demo.db.meta;
/**
 * database table field info
 * @author  
 * @date    2010-9-3
 * @file    org.demo.db.meta.Field.java
 */
public class Field {
	private String name;
	// 注释
	private String remarks;
	private String type;
	private int length;
	// 精度
	private int precision;
	private boolean nullable;
	private String defaultValue;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getRemarks() {
		return remarks;
	}
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public int getLength() {
		return length;
	}
	public void setLength(int length) {
		this.length = length;
	}
	public int getPrecision() {
		return precision;
	}
	public void setPrecision(int precision) {
		this.precision = precision;
	}
	public boolean isNullable() {
		return nullable;
	}
	public void setNullable(boolean nullable) {
		this.nullable = nullable;
	}
	public String getDefaultValue() {
		return defaultValue;
	}
	public void setDefaultValue(String defaultValue) {
		this.defaultValue = defaultValue;
	}
	@Override
	public String toString() {
		return "Field [name=" + name 
			+ ", remarks=" + remarks 
			+ ", type=" + type 
			+ ", length=" + length 
			+ ", precision=" + precision 
			+ ", nullable=" + nullable
			+ ", defaultValue=" + defaultValue 
			+ "]";
	}
}
